package com.eliza.kotlin.design.structure.proxy.static_proxy

/**
 * @version v1.0
 * @ClassName: TrainStation
 * @Description: 火车站类
 * @Author: 黑马程序员
 */
internal class TrainStation : SellTickets {
    override fun sell() {
        println("火车站卖票")
    }
}

internal object Client {
    @JvmStatic
    fun main(args: Array<String>) {
        //创建代售点类对象
        val proxyPoint = ProxyPoint()
        //调用方法进行买票
        proxyPoint.sell()
    }
}